// import request from '@/utils/system/request.js'

const menuData = {
  errcode: 0,
  errmsg: '操作成功',
  sysErrMsg: null,
  result: [
    {
      id: '2',
      order: 2,
      name: '使用手册',
      isIndex: false,
      path: 'module_manual',
      menu: [
        {
          path: 'menuInfo',
          meta: {
            title: '菜单',
            cache: false,
          },
          isTopmenu: true,
          children: [
            {
              path: 'test2',
              meta: {
                title: 'menuStore',
                cache: false,
              },
              children: [],
            },
            {
              path: 'test3',
              meta: {
                title: '动态路由',
                cache: false,
              },
              children: [],
            },
            {
              path: 'test4',
              meta: {
                title: '白名单',
                cache: false,
              },
              children: [],
            },
          ],
        },
        {
          path: 'pzwj',
          meta: {
            title: '配置文件',
            cache: true,
          },
          isTopmenu: true,
          children: [],
        },
        {
          path: 'userInfo',
          meta: {
            title: '用户信息',
            cache: true,
          },
          isTopmenu: true,
          children: [
            {
              path: 'loginInfo',
              meta: {
                title: '登录过程',
                cache: false,
              },
              children: [],
            },
            {
              path: 'userInfo',
              meta: {
                title: '用户信息',
                cache: false,
              },
              children: [],
            },
          ],
        },
        {
          path: '/page1',
          meta: {
            title: '白名单',
            cache: false,
          },
          isTopmenu: true,
          isWhiteList: true,
          target: '_blank',
          children: [],
        },
        {
          path: 'http://www.baidu.com',
          meta: {
            title: '百度',
            cache: false,
          },
          isTopmenu: true,
          isOutLink: true,
          target: '_blank',
          children: [],
        },
      ],
    },
  ],
}

// 获取菜单api
export function getMenuApi(data) {
  return new Promise((resolve) => {
    resolve(menuData)
  })
}
